using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Turquoise.EntityGenerator.Models.Mapping;

namespace Turquoise.EntityGenerator.Models
{
    public partial class TurquoiseDBContext : DbContext
    {
        static TurquoiseDBContext()
        {
            Database.SetInitializer<TurquoiseDBContext>(null);
        }

        public TurquoiseDBContext()
            : base("Name=TurquoiseDBContext")
        {
        }

        public DbSet<Activity> Activities { get; set; }
        public DbSet<ActivityGroup> ActivityGroups { get; set; }
        public DbSet<ActivityGroupHistory> ActivityGroupHistories { get; set; }
        public DbSet<ActivityGroupLanguageLine> ActivityGroupLanguageLines { get; set; }
        public DbSet<ActivityGroupLanguageLineHistory> ActivityGroupLanguageLineHistories { get; set; }
        public DbSet<Content> Contents { get; set; }
        public DbSet<ContentCategory> ContentCategories { get; set; }
        public DbSet<ContentCategoryHistory> ContentCategoryHistories { get; set; }
        public DbSet<ContentCategoryLanguageLine> ContentCategoryLanguageLines { get; set; }
        public DbSet<ContentCategoryLanguageLineHistory> ContentCategoryLanguageLineHistories { get; set; }
        public DbSet<ContentHistory> ContentHistories { get; set; }
        public DbSet<ContentLanguageLine> ContentLanguageLines { get; set; }
        public DbSet<ContentLanguageLineHistory> ContentLanguageLineHistories { get; set; }
        public DbSet<ContentType> ContentTypes { get; set; }
        public DbSet<ContentTypeHistory> ContentTypeHistories { get; set; }
        public DbSet<ContentTypeLanguageLine> ContentTypeLanguageLines { get; set; }
        public DbSet<ContentTypeLanguageLineHistory> ContentTypeLanguageLineHistories { get; set; }
        public DbSet<File> Files { get; set; }
        public DbSet<FileHistory> FileHistories { get; set; }
        public DbSet<Keyword> Keywords { get; set; }
        public DbSet<KeywordHistory> KeywordHistories { get; set; }
        public DbSet<KeywordLanguageLine> KeywordLanguageLines { get; set; }
        public DbSet<KeywordLanguageLineHistory> KeywordLanguageLineHistories { get; set; }
        public DbSet<Language> Languages { get; set; }
        public DbSet<LanguageHistory> LanguageHistories { get; set; }
        public DbSet<Menu> Menus { get; set; }
        public DbSet<MenuHistory> MenuHistories { get; set; }
        public DbSet<MenuItem> MenuItems { get; set; }
        public DbSet<MenuItemHistory> MenuItemHistories { get; set; }
        public DbSet<MenuItemLanguageLine> MenuItemLanguageLines { get; set; }
        public DbSet<MenuItemLanguageLineHistory> MenuItemLanguageLineHistories { get; set; }
        public DbSet<MenuLanguageLine> MenuLanguageLines { get; set; }
        public DbSet<MenuLanguageLineHistory> MenuLanguageLineHistories { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<RoleActivityGroupLine> RoleActivityGroupLines { get; set; }
        public DbSet<RoleActivityGroupLineHistory> RoleActivityGroupLineHistories { get; set; }
        public DbSet<RoleHistory> RoleHistories { get; set; }
        public DbSet<RoleLanguageLine> RoleLanguageLines { get; set; }
        public DbSet<RoleLanguageLineHistory> RoleLanguageLineHistories { get; set; }
        public DbSet<RoleUserGroupLine> RoleUserGroupLines { get; set; }
        public DbSet<RoleUserGroupLineHistory> RoleUserGroupLineHistories { get; set; }
        public DbSet<Session> Sessions { get; set; }
        public DbSet<SessionHistory> SessionHistories { get; set; }
        public DbSet<Setting> Settings { get; set; }
        public DbSet<SettingHistory> SettingHistories { get; set; }
        public DbSet<SettingLanguageLine> SettingLanguageLines { get; set; }
        public DbSet<SettingLanguageLineHistory> SettingLanguageLineHistories { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<UserGroup> UserGroups { get; set; }
        public DbSet<UserGroupHistory> UserGroupHistories { get; set; }
        public DbSet<UserGroupLanguageLine> UserGroupLanguageLines { get; set; }
        public DbSet<UserGroupLanguageLineHistory> UserGroupLanguageLineHistories { get; set; }
        public DbSet<UserGroupRoleLine> UserGroupRoleLines { get; set; }
        public DbSet<UserGroupRoleLineHistory> UserGroupRoleLineHistories { get; set; }
        public DbSet<UserGroupUserLine> UserGroupUserLines { get; set; }
        public DbSet<UserGroupUserLineHistory> UserGroupUserLineHistories { get; set; }
        public DbSet<UserHistory> UserHistories { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new ActivityMap());
            modelBuilder.Configurations.Add(new ActivityGroupMap());
            modelBuilder.Configurations.Add(new ActivityGroupHistoryMap());
            modelBuilder.Configurations.Add(new ActivityGroupLanguageLineMap());
            modelBuilder.Configurations.Add(new ActivityGroupLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new ContentMap());
            modelBuilder.Configurations.Add(new ContentCategoryMap());
            modelBuilder.Configurations.Add(new ContentCategoryHistoryMap());
            modelBuilder.Configurations.Add(new ContentCategoryLanguageLineMap());
            modelBuilder.Configurations.Add(new ContentCategoryLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new ContentHistoryMap());
            modelBuilder.Configurations.Add(new ContentLanguageLineMap());
            modelBuilder.Configurations.Add(new ContentLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new ContentTypeMap());
            modelBuilder.Configurations.Add(new ContentTypeHistoryMap());
            modelBuilder.Configurations.Add(new ContentTypeLanguageLineMap());
            modelBuilder.Configurations.Add(new ContentTypeLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new FileMap());
            modelBuilder.Configurations.Add(new FileHistoryMap());
            modelBuilder.Configurations.Add(new KeywordMap());
            modelBuilder.Configurations.Add(new KeywordHistoryMap());
            modelBuilder.Configurations.Add(new KeywordLanguageLineMap());
            modelBuilder.Configurations.Add(new KeywordLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new LanguageMap());
            modelBuilder.Configurations.Add(new LanguageHistoryMap());
            modelBuilder.Configurations.Add(new MenuMap());
            modelBuilder.Configurations.Add(new MenuHistoryMap());
            modelBuilder.Configurations.Add(new MenuItemMap());
            modelBuilder.Configurations.Add(new MenuItemHistoryMap());
            modelBuilder.Configurations.Add(new MenuItemLanguageLineMap());
            modelBuilder.Configurations.Add(new MenuItemLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new MenuLanguageLineMap());
            modelBuilder.Configurations.Add(new MenuLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new RoleMap());
            modelBuilder.Configurations.Add(new RoleActivityGroupLineMap());
            modelBuilder.Configurations.Add(new RoleActivityGroupLineHistoryMap());
            modelBuilder.Configurations.Add(new RoleHistoryMap());
            modelBuilder.Configurations.Add(new RoleLanguageLineMap());
            modelBuilder.Configurations.Add(new RoleLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new RoleUserGroupLineMap());
            modelBuilder.Configurations.Add(new RoleUserGroupLineHistoryMap());
            modelBuilder.Configurations.Add(new SessionMap());
            modelBuilder.Configurations.Add(new SessionHistoryMap());
            modelBuilder.Configurations.Add(new SettingMap());
            modelBuilder.Configurations.Add(new SettingHistoryMap());
            modelBuilder.Configurations.Add(new SettingLanguageLineMap());
            modelBuilder.Configurations.Add(new SettingLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new UserMap());
            modelBuilder.Configurations.Add(new UserGroupMap());
            modelBuilder.Configurations.Add(new UserGroupHistoryMap());
            modelBuilder.Configurations.Add(new UserGroupLanguageLineMap());
            modelBuilder.Configurations.Add(new UserGroupLanguageLineHistoryMap());
            modelBuilder.Configurations.Add(new UserGroupRoleLineMap());
            modelBuilder.Configurations.Add(new UserGroupRoleLineHistoryMap());
            modelBuilder.Configurations.Add(new UserGroupUserLineMap());
            modelBuilder.Configurations.Add(new UserGroupUserLineHistoryMap());
            modelBuilder.Configurations.Add(new UserHistoryMap());
        }
    }
}
